Skip to content

feat: pending attrs split + effects buffer#380

Merged
AviAvni merged 4 commits intomainfrom
effects-buffer
Apr 14, 2026
Merged

feat: pending attrs split + effects buffer#380
AviAvni merged 4 commits intomainfrom
effects-buffer

Conversation

@AviAvni
Copy link
Copy Markdown
Contributor

@AviAvni AviAvni commented Apr 14, 2026

Summary

  • Split set_nodes_attrs/set_relationships_attrs into new_*/existing_* variants for optimized paths (new entities skip fjall lookups)
  • Add build_effects_buffer() for binary effects serialization (replication)
  • Add schema baseline tracking in Pending for incremental schema effects
  • Wire effects buffer into CommitOp (build before commit, clear after)
  • Fix properties_set counts in test_effects.py

Part of splitting #359 into smaller reviewable PRs.

Test plan

  • cargo test -p graph passes
  • pytest tests/test_e2e.py -vv passes
  • Flow tests: TEST=tests/flow/test_effects.py ./flow.sh

…ucture

- Split set_nodes_attrs/set_relationships_attrs into new/existing variants
  for optimized fast-path (new entities skip fjall lookups)
- Add effects buffer serialization (build_effects_buffer) for replication
- Add schema baseline tracking in Pending for incremental schema effects
- Wire effects buffer building into CommitOp (before commit)
- Fix properties_set counts in test_effects.py for new behavior
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 14, 2026

Warning

Rate limit exceeded

@AviAvni has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 15 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 15 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4a298836-7d5c-4528-afa9-873daf4d532c

📥 Commits

Reviewing files that changed from the base of the PR and between 0858052 and 7c72209.

📒 Files selected for processing (4)
  • graph/src/runtime/ops/commit.rs
  • graph/src/runtime/pending.rs
  • graph/src/runtime/runtime.rs
  • tests/flow/test_effects.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch effects-buffer

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

AviAvni added 3 commits April 14, 2026 16:46
commit() doesn't clear pending state — clear() does that separately.
So effects buffer can safely be built after a successful commit.
@AviAvni AviAvni merged commit fb5ec4a into main Apr 14, 2026
14 checks passed
@AviAvni AviAvni deleted the effects-buffer branch April 14, 2026 14:02
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

❌ Patch coverage is 67.44186% with 168 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.32%. Comparing base (0858052) to head (7c72209).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
graph/src/runtime/pending.rs 66.06% 168 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #380      +/-   ##
==========================================
- Coverage   82.48%   82.32%   -0.17%     
==========================================
  Files         109      110       +1     
  Lines       29580    30078     +498     
==========================================
+ Hits        24400    24762     +362     
- Misses       5180     5316     +136     
Flag Coverage Δ
fuzz 40.54% <52.13%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant